package com.suncaper.han_yi_system.ai;


import com.suncaper.han_yi_system.pojo.entity.ClothingStyle;
import com.suncaper.han_yi_system.service.ClothingStyleService;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AITools {

    @Autowired
    private ClothingStyleService clothingStyleService;

    @Tool(description = "查询所有的款式")
    public List<ClothingStyle> queryClothingStyle() {
        return clothingStyleService.list();
    }

}
